package cn.middle.basic.mapper;

import cn.middle.basic.entity.SysMenu;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.middle.common.base.mapper.BaseMapper;

public interface SysMenuMapper extends BaseMapper<SysMenu> {
	
	public List<SysMenu> selectMenuByUserId(@Param("userId")Long userId);
	
	public List<String> selectAuthorisationCodeByUserId(@Param("userId")Long userId);
	
	public List<SysMenu> selectByName(@Param("name")String name);
	
	public List<SysMenu> selectByPid(@Param("pId")Long pId);
	
	public List<SysMenu> selectByMenuType(@Param("menuType")Byte menuType);
	
	public void deleteByParentId(@Param("parentId")Long parentId);
}